package com.zhanglinfeng.api.service.impl;

import com.zhanglinfeng.api.entity.UserEntity;
import com.zhanglinfeng.api.response.ResultResponse;
import com.zhanglinfeng.api.service.LoginFeign;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 降级处理类
 */
@Component
public class LoginFeignImpl implements LoginFeign {

    @Override
    public ResultResponse<String> login(@RequestBody UserEntity user) {
        ResultResponse<String> resultResponse = new ResultResponse();
        resultResponse.setCode(500);
        resultResponse.setMessage("登录失败");
        return resultResponse;
    }
}
